﻿using System;
using System.Collections.Generic;
using System.Text;

namespace efish.Framework.Model
{
    public class Category : BaseModel
    {
        private string _title;
        public virtual string Title
        {
            get { return _title; }
            set { _title = value; }
        }

        private string _des;
        public virtual string Des
        {
            get { return _des; }
            set { _des = value; }
        }

        private DateTime _addedDate = DateTime.Now;
        public virtual DateTime AddedDate
        {
            get { return _addedDate; }
            set { _addedDate = value; }
        }

        private string _addedBy = "";
        public virtual string AddedBy
        {
            get { return _addedBy; }
            set { _addedBy = value; }
        }

        private string _imageuri = "";
        public virtual string ImageUri
        {
            get { return _imageuri; }
            set { _imageuri = value; }
        }

        private int _importance;
        public virtual int Importance
        {
            get { return _importance; }
            set { _importance = value; }
        }

        private int _parentid;
        public virtual int ParentID
        {
            get
            {
                return _parentid;
            }
            set
            {
                _parentid = value;
            }
        }

        private ICollection<Product> _products;
        public virtual ICollection<Product> Products
        {
            get { return _products; }
            set { _products = value; }
        }

        private ICollection<Category> _childcategories;
        public virtual ICollection<Category> ChildCategories
        {
            get { return _childcategories; }
            set { _childcategories = value; }
        }
    }
}
